<?php
$arr = [
    'files'=>$_FILES,
    'post'=>$_POST,
];
echo json_encode($arr);
